<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<script src="js/zy_control.js"></script>
<script src="js/zy_click.js"></script>
</head>
<body>
	<div ontouchstart="zy_touch('act')" onclick="getpic();" id="addpic">上传图片</div>        
</body>
<script>
	zy_init();	
	window.uexOnload=function(type){
		if (!type) {
			
		}
	}
	
	function getpic(){
		uexWindow.cbActionSheet = function(opId, dt, d){
			var cmd = parseInt(d);
			if(cmd<2){
				if(cmd==1){
					uexImageBrowser.cbPick = function(opCode, dataType, data) {
						alert(data);
					}
					uexImageBrowser.pick();
				}
				else{
					uexCamera.cbOpen  = function(opCode, dataType, data) {
						alert(data);
					}
					uexCamera.open(0,80);
				}
			} 
		}
			
		var value = ["拍照上传","本地上传"];
		uexWindow.actionSheet('', '取消', value);
	}
</script>
</html>